<template>
    <div class="test">
        <DataForm @submit="handleSubmit"></DataForm>
    </div>
   
</template>
<script setup lang='ts'>
import DataForm from './DataForm.vue';
    ////#region defineXxx
    //defineOptions({
        //name:
    //});

    //const props=defineProps({
        //propA:{
            //type:String,
            //required:true
        //},
        //propB:{
            //type:Number,
            //default:1
        //},
        //propC:{
            //type:String as PropType<MyType>,
            //required:true
        //},
    //});

    //const emit = defineEmits<{
        //event1:[para1:number,para2:string],
        //event2:[para1:number,para2:string],
    //}>();
    ////#endregion
    const handleSubmit=(formData:any,callback:Function)=>{
        console.log('formData',formData);
        callback('发布成功');
    }
    
</script>
<style lang='less' scoped>
    .test{
        width: 300px;
        border: 1px solid #000;
        .self-center();
    }
</style>